package com.group1.onlineeducation.sugar.service;

import com.group1.onlineeducation.sugar.bean.*;
import com.group1.onlineeducation.sugar.mapper.TradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficServiceImpl implements TrafficService {
    @Autowired
    TradeMapper tradeMapper;

    @Override
    public List<ScTraffic> scTraffic(int date) {
        return tradeMapper.scTraffic(date);
    }

    @Override
    public List<HourTraffic> hourTraffic(int date) {
        return tradeMapper.hourTraffic(date);
    }

    @Override
    public List<IsNewTraffic> isNewTraffic(int date) {
        return tradeMapper.isNewTraffic(date);
    }

    @Override
    public List<KwTraffic> kwTraffic(int date) {
        return tradeMapper.kwTraffic(date);
    }

    @Override
    public List<ProvinceTrade> provinceTrade(int date) {
        return tradeMapper.provinceTrade(date);
    }
}
